package com.amoyt.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 项目资金用途明细
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "项目资金用途明细")
public class ProjectFundUsage implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @Schema(description = "关联项目公示表id")
  private Long noticeId;

  @Schema(description = "用途项（如\"修缮危房\"）")
  private String usageItem;

  @Schema(description = "该项金额（元）")
  private BigDecimal itemAmount;

  @Schema(description = "占总资金比例（%）")
  private BigDecimal proportion;

  @Schema(description = "创建时间")
  private Date createTime;

  @Schema(description = "创建人")
  private String createBy;

  @Schema(description = "更新时间")
  private Date updateTime;

  @Schema(description = "更新人")
  private String updateBy;

  @Schema(description = "逻辑删除")
  private Integer deleted;
}
